<template>
  <div>
    <input type="text" placeholder="请输入" v-model="value" @input="OnInput" />
  </div>
</template>

<script>
export default {
  name: "MyInput",
  data() {
    return {
      value: ""
    };
  },
  methods: {
    OnInput() {
      console.log("input", this.value);
      this.$emit("myinputvalue", this.value);
    }
  }
};
</script>

<style>
</style>